package com.ryan.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author raofy
 * @date 2021-10-20 18:18
 * @desc
 */
@Slf4j
@RestController
@RefreshScope  // 支持动态刷新
public class MyTestController {

    @Value("${didispace.title:}")
    private String title;

    @GetMapping("config")
    public String getConfig(){
        return title;
    }
}
